# coding=utf-8

import requests


s = 'abcdefghijklmnopqrstuvwxyz'

# headers = {
    # 'Accept':'*/*',
    # 'Accept-Encoding':'gzip,deflate',
    # 'Accept-Language':'zh-CN,zh;q=0.8,zh-TW;q=0.6',
    # 'Connection':'keep-alive',
    # 'Content-Length':26,
    # 'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8',
    # 'Cookie':'git_osc_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRkkiJWYwYTI0ZjExMjA5ZmRiNzVhODE0Y2M5NTcyZjQ3ZGVlBjsAVEkiEF9jc3JmX3Rva2VuBjsARkkiMW1QYmtOWGtSUHk2NFNQaC9nZVBrSDFQQU00L1U3ejJ0bWVFQk1vbm9zT0U9BjsARkkiDGNhcHRjaGEGOwBGSSILUENNM0VUBjsARg%3D%3D--31b56de3d343125f3539a9e15e1f3b3f015f25a4',
    # 'DNT':1,
    # 'Host':'git.oschina.net',
    # 'Origin':'https://git.oschina.net',
    # 'Referer':'https://git.oschina.net/',
    # 'User-Agent':'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36',
    # 'X-CSRF-Token':'mPbkNXkRPy64SPh/gePkH1PAM4/U7z2tmeEBMonosOE=',
    # 'X-Requested-With':'XMLHttpRequest',
# }

payload = {'do': 'user_username', 'val': ''}



if __name__ =='__main__':
    ans = []
#    for i in s:
#        for j in s:
#            payload['val'] = str(i+j)
#            r = r = requests.post("https://git.oschina.net/check", data=payload)
#            # r = r = requests.post("https://git.oschina.net/check", data=payload, headers = headers)
#            if r.text == '1':
#                print i + j
#                ans.append(i + j)
#    print ans
    payload['val'] = 'Creeper'
    r = requests.post("https://git.oschina.net/check", data=payload)
    print r.text
    
# ['af', 'al', 'am', 'ao', 'ar', 'aw', 'ay', 'ba', 'bl', 'bp', 'br', 'cu', 'di', '
# dv', 'eb', 'ef', 'eg', 'eh', 'el', 'eo', 'eq', 'ev', 'fg', 'fi', 'fp', 'fv', 'ga
# ', 'gi', 'gr', 'gv', 'hv', 'ib', 'ih', 'ij', 'ik', 'il', 'in', 'iq', 'ir', 'iu',
#  'iv', 'iw', 'ix', 'iy', 'iz', 'jg', 'ji', 'jv', 'kn', 'kp', 'kq', 'kr', 'mb', '
# mv', 'nd', 'ne', 'nf', 'nq', 'nr', 'nt', 'nw', 'nx', 'ny', 'ob', 'oe', 'of', 'oh
# ', 'ol', 'oq', 'ou', 'ov', 'ow', 'pd', 'pq', 'pu', 'pv', 'qg', 'qn', 'qo', 'qp',
#  'qv', 'ra', 'rb', 'rh', 'rl', 'rm', 'ro', 'rp', 'rq', 'ru', 'rv', 'rx', 'rz', '
# si', 'sv', 'td', 'tr', 'ua', 'ub', 'uc', 'uf', 'uh', 'uj', 'uk', 'ul', 'um', 'un
# ', 'uo', 'uq', 'ut', 'uw', 'ux', 'uy', 'uz', 'va', 'vd', 'vf', 'vh', 'vj', 'vl',
#  'vm', 'vo', 'vr', 'vt', 'vw', 'vx', 'vy', 'vz', 'wr', 'wv', 'xe', 'xr', 'yo', '
# yv', 'zv']